package xml.sax;
public class ClassNameLoader
{

    public static String getPackageName(Class c) {

        String fullyQualifiedName = c.getName();
        int lastDot = fullyQualifiedName.lastIndexOf('.');
        if (lastDot == -1) {
            return "";
        }
        return fullyQualifiedName.substring(0, lastDot);
    }
}
